import java.util.Scanner;

public class useBurglarProofDoor{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        BurglarProofDoor bpd = new BurglarProofDoor("00000", "owner","000");
        //BurglarProofDoor.Handle equipDoor = new BurglarProofDoor("00000","owner").new Handle("000");

        System.out.println("## Sercurity System BackStage ##");
        System.out.println("Please set the owner");
        String inputOwner = input.nextLine();
        bpd.setOwner(inputOwner);
        System.out.println("Please set the code");
        String inputCode = input.nextLine();
        bpd.setCode(inputCode);
        System.out.println("Please set the roomnumber");
        String inputHousenumber = input.nextLine();
        bpd.setHousenumber(inputHousenumber);
        System.out.println();

        System.out.println("## Sercurity System FrontStage ##");
        //bpd.turnHandle();
        System.out.println("Please load in your code");
        String _code = input.nextLine();
        System.out.println();
        bpd.checkCode(_code);
        bpd.lock(_code);
        bpd.unlock(_code);
        bpd.monitor();


    }
}